package com.chixing.day03_oop;

public class StudentTest {
    public static void main(String[] args) {
        /*
        * 1.new创建对象，开辟一块堆内存
        * 2.构造函数:初始化对象
        * */
        new Student();
        new Student();
        new Student();  //构造函数

        Student stu1 = new Student();
        stu1.setStuId(101);
        stu1.setStuName("姜");

        Student stu = new Student(102,"云");
        System.out.println("ID：" + stu1.getStuId() + "  姓名:" + stu1.getStuName());
    }

}
